<template>
  <div>
    <h2>Left组件</h2>
    <button @click="send">传递数据</button>
  </div>
</template>

<script>
    import bus from "@/bus";
    export default {
        methods: {
            send () {
                bus.$emit('share', 'yoyo')
            }
        }
    }
</script>

<style>
h2 {
  color: #a6a1d9;
}
</style>